package net.ikenway.springboot.demo.Service.Interface;

import net.ikenway.springboot.demo.Model.Dto.ProductDto;
import net.ikenway.springboot.demo.Model.Entity.Order;
import net.ikenway.springboot.demo.Model.Entity.Product;

import javax.persistence.EntityNotFoundException;
import java.util.List;

/**
 * @author MasterKenway <zk@ikenway.net>
 * @Description
 * @date Created Date 12/17/2020
 */
public interface ProductServiceIntf {
    public List<ProductDto> findAll();

    public List<ProductDto> findBySortName(String sort) throws Exception;

    public ProductDto create(ProductDto productDto) throws Exception;

    public void update(ProductDto productDto) throws Exception;

    public void delete(List<Long> productIds) throws Exception;

    public Product exitsOrNot(Long productId) throws EntityNotFoundException;
}
